.class Lrexsee/core/transportation/RexseeAjax$4;
.super Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;
.source "RexseeAjax.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/transportation/RexseeAjax;->syncSubmit(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/transportation/RexseeAjax;

.field private final synthetic val$cancelable:Z

.field private final synthetic val$showProgress:Z


# direct methods
.method constructor <init>(Lrexsee/core/transportation/RexseeAjax;ZZ)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    iput-boolean p2, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$cancelable:Z

    iput-boolean p3, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$showProgress:Z

    .line 210
    invoke-direct {p0}, Lrexsee/core/transportation/RexseeAjax$AjaxProgressListener;-><init>()V

    return-void
.end method


# virtual methods
.method public run(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/Runnable;)V
    .locals 7
    .param p1, "ajaxUrl"    # Ljava/lang/String;
    .param p2, "status"    # I
    .param p3, "totalSize"    # I
    .param p4, "downloadedSize"    # I
    .param p5, "ajaxResponse"    # Ljava/lang/String;
    .param p6, "stopTheAjax"    # Ljava/lang/Runnable;

    .prologue
    const-string v6, "[Exception]"

    const-string v5, "......"

    const-string v4, " "

    .line 213
    const/4 v1, -0x1

    if-ne p2, v1, :cond_2

    .line 214
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$cancelable:Z

    if-eqz v1, :cond_1

    .line 215
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$showProgress:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_CONNECT:Ljava/lang/String;

    invoke-virtual {v1, v2, p6}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 233
    :cond_0
    :goto_0
    return-void

    .line 217
    :cond_1
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$showProgress:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    sget-object v2, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_CONNECT:Ljava/lang/String;

    invoke-virtual {v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto :goto_0

    .line 219
    :cond_2
    const/4 v1, -0x2

    if-ne p2, v1, :cond_3

    .line 220
    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lrexsee/core/transportation/RexseeAjax;->access$1(Lrexsee/core/transportation/RexseeAjax;Ljava/lang/String;)V

    goto :goto_0

    .line 221
    :cond_3
    const/4 v1, -0x3

    if-ne p2, v1, :cond_4

    .line 222
    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lrexsee/core/transportation/RexseeAjax;->access$1(Lrexsee/core/transportation/RexseeAjax;Ljava/lang/String;)V

    goto :goto_0

    .line 223
    :cond_4
    if-nez p2, :cond_7

    .line 224
    if-gez p3, :cond_5

    const-string v1, ""

    move-object v0, v1

    .line 225
    .local v0, "progress":Ljava/lang/String;
    :goto_1
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$cancelable:Z

    if-eqz v1, :cond_6

    .line 226
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$showProgress:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    new-instance v2, Ljava/lang/StringBuilder;

    sget-object v3, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "......"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, p6}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    goto :goto_0

    .line 224
    .end local v0    # "progress":Ljava/lang/String;
    :cond_5
    new-instance v1, Ljava/lang/StringBuilder;

    mul-int/lit8 v2, p4, 0x64

    div-int/2addr v2, p3

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, "%"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    move-object v0, v1

    goto :goto_1

    .line 228
    .restart local v0    # "progress":Ljava/lang/String;
    :cond_6
    iget-boolean v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->val$showProgress:Z

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    # getter for: Lrexsee/core/transportation/RexseeAjax;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/core/transportation/RexseeAjax;->access$0(Lrexsee/core/transportation/RexseeAjax;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v1, v1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    new-instance v2, Ljava/lang/StringBuilder;

    sget-object v3, Lrexsee/core/lang/RexseeLanguage;->PROGRESS_ONGOING:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, "......"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " "

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;)V

    goto/16 :goto_0

    .line 230
    .end local v0    # "progress":Ljava/lang/String;
    :cond_7
    const/4 v1, 0x1

    if-ne p2, v1, :cond_0

    .line 231
    iget-object v1, p0, Lrexsee/core/transportation/RexseeAjax$4;->this$0:Lrexsee/core/transportation/RexseeAjax;

    invoke-static {v1, p5}, Lrexsee/core/transportation/RexseeAjax;->access$1(Lrexsee/core/transportation/RexseeAjax;Ljava/lang/String;)V

    goto/16 :goto_0
.end method
